#ifndef __INTERNAL_FLASH_H__
#define __INTERNAL_FLASH_H__

#ifdef __cplusplus
extern "C" {
#endif

extern void flash_open(void);
extern unsigned long flash_read(unsigned long from_address, unsigned long *buffer, unsigned long length);
extern unsigned long flash_write(unsigned long from_address, unsigned long *buffer, unsigned long length);
extern unsigned long flash_erase(unsigned long from_address, unsigned long length);
extern void flash_close(void);

#ifdef __cplusplus
}
#endif
#endif
